package com.yy.service.impl;

import com.yy.mapper.UsersMapper;
import com.yy.model.Users;
import com.yy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author
 * @date 2021/11/26/14:41
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<Object> findAllUsers() {
        System.out.println("service层实现被调用");
        return null;
    }

    @Override
    public Users findByID(Integer id) {
        Users users = usersMapper.selectByPrimaryKey(id);
        return users;
    }
}
